home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / FileStatistics.h < prev    next >
Text File  |  1997-06-28  |  565b  |  33 lines

  1. // FileStatistics.h
  2.  
  3. #ifndef FileStatistics_h
  4. #define FileStatistics_h
  5.  
  6. #ifndef Str_h
  7. #include "Str.h"
  8. #endif
  9. #ifndef RedBlackLink_h
  10. #include "RedBlackLink.h"
  11. #endif
  12.  
  13. class FileStatistics
  14.   {
  15.     friend class CompileStatistics;
  16.     
  17.      private:
  18.         const String31 name;
  19.         uint32 lines;
  20.         RedBlackLink< ConstPString, FileStatistics > link;
  21.     
  22.     public:
  23.         FileStatistics( ConstPString name, uint32 lines );
  24.         ~FileStatistics();
  25.         
  26.         uint32 Lines() const            { return lines; }
  27.         void SetLines( uint32 n )    { lines = n; }
  28.         
  29.         ConstPString Name() const    { return name; }
  30.   };
  31.  
  32. #endif
  33.